  <%@ page pageEncoding="UTF-8" %>
  <%@ page import="
  java.util.Date,
	java.util.*,
	javax.servlet.*,
	javax.servlet.http.*,
	com.wobaby.dao.*,
	com.wobaby.vo.*
	"%>
	
<%
String userName = new String(request.getParameter("username").getBytes("ISO-8859-1"),"UTF-8");
String password = new String(request.getParameter("password").getBytes("ISO-8859-1"),"UTF-8");
 
UserManagement userManage = new UserManagement();
UserVO user = userManage.lookupUserByUserName(userName);
if(user!=null){
	session.setAttribute("UserVO",user);
	response.sendRedirect("tongzhi.jsp");
}else{
	response.sendRedirect("index.jsp");
}
 %>	